<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	template="/layout/dialogLayout.xhtml">

	<ui:param name="param_panelTitle" value="更新订单状态" />
	<ui:param name="param_panelWidth" value="400px" />

	<ui:define name="content">
	   <script type="text/javascript">
	    function reRender(){
	    	try{
	    		    UI.instance.reRender('reRenderOrderTable');
	    	}catch(err){
	    			UI.instance.resetContent("/luyuan/sale/orderListForChecker.jsf")
	    	}
	    		    UI.instance.closeDialog();
	    }
	   </script>
		<a:form>
			<rg:titlePanel needButton="true" type="writable">
				<ui:define name="panelBody">
					<rg:fieldSet column="single">
						<rg:inputArea label="退回原因"
							value="#{orderCheckerAction.remarks}" id="remarks"
							cols="100" />
					</rg:fieldSet>
				</ui:define>
				<ui:define name="panelButton">
					<a:commandButton styleClass="button" value="退回修改"
						oncomplete="reRender();"
						actionListener="#{orderCheckerAction.verifyOrder('return')}" />

					<button class="button" onclick="UI.instance.closeDialog()" >关闭</button>
				</ui:define>
			</rg:titlePanel>
		</a:form>
	</ui:define>
</ui:composition>
